package com.qf.fmall.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author 王权富贵
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "ResultVO对象", description = "封装接口返回给前端的数据")
public class ResultVo {
    @ApiModelProperty(value = "响应状态码", dataType = "int", example = "1 : 表示成功 0 :表示失败")
    private Integer code;
    @ApiModelProperty(value = "响应提示信息", dataType = "String", example = "比如用户不存在")
    private String msg;
    @ApiModelProperty(value = "响应数据", dataType = "Object", example = "User")
    private Object data;
}
